package model;

import com.stefanini.pe.bbva.mbl.in.bo.iface.LogLoginBO;
import com.stefanini.pe.bbva.mbl.in.bo.iface.UsuariosBO;
import com.stefanini.pe.bbva.mbl.in.listeners.SpringInit;

public class LoginModel {
	private boolean m_booIsPostBack = false;
	private String m_strTxtUsuario_Text = "";
	private String m_strTxtPassword_Text = "";
	private String m_strLblError_Text = "";
	LogLoginBO logLoginService = null;
	UsuariosBO usuariosService=null;

	public LoginModel(){
		logLoginService =(LogLoginBO)SpringInit.getApplicationContext().getBean("logLoginService");
		usuariosService = (UsuariosBO)SpringInit.getApplicationContext().getBean("usuariosService");
	}
	/**
	 * @return Returns the m_booIsPostBack.
	 */
	public boolean isPostBack() {
		return m_booIsPostBack;
	}
	/**
	 * @param isPostBack The m_booIsPostBack to set.
	 */
	public void setPostBack(boolean isPostBack) {
		m_booIsPostBack = isPostBack;
	}
	/**
	 * @return Returns the m_strLblError_Text.
	 */
	public String getLblError_Text() {
		return m_strLblError_Text;
	}
	/**
	 * @param lblError_Text The m_strLblError_Text to set.
	 */
	public void setLblError_Text(String lblError_Text) {
		m_strLblError_Text = lblError_Text;
	}
	/**
	 * @return Returns the m_strTxtPassword_Text.
	 */
	public String getTxtPassword_Text() {
		return m_strTxtPassword_Text;
	}
	/**
	 * @param txtPassword_Text The m_strTxtPassword_Text to set.
	 */
	public void setTxtPassword_Text(String txtPassword_Text) {
		m_strTxtPassword_Text = txtPassword_Text;
	}
	/**
	 * @return Returns the m_strTxtUsuario_Text.
	 */
	public String getTxtUsuario_Text() {
		return m_strTxtUsuario_Text;
	}
	/**
	 * @param txtUsuario_Text The m_strTxtUsuario_Text to set.
	 */
	public void setTxtUsuario_Text(String txtUsuario_Text) {
		//m_strTxtUsuario_Text = txtUsuario_Text.toUpperCase();
		m_strTxtUsuario_Text = txtUsuario_Text;
	}
	public LogLoginBO getLogLoginService() {
		return logLoginService;
	}

	public void setLogLoginService(LogLoginBO logLoginService) {
		this.logLoginService = logLoginService;
	}
	
	public UsuariosBO getUsuariosService() {
		return usuariosService;
	}
	public void setUsuariosService(UsuariosBO usuariosService) {
		this.usuariosService = usuariosService;
	}
}
